﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WMS.Model;

namespace WMS.Service.Minio
{
    public interface IMinioService
    {
        Task<bool> BucketExistsAsync(string bucketName = null);

        Task<List<string>> ListBucketsAsync();

        Task CreateBucketAsync(string bucketName = null);

        Task<string> UploadFileAsync(IFormFile file, string bucketName = null);

        Task<Stream> DownloadFileAsync(string objectName, string bucketName = null);

        Task<bool> DeleteFileAsync(string objectName, string bucketName = null);
    }
}
